using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using WeifenLuo.WinFormsUI.Docking;

namespace HRM
{
    public partial class FormMainMenu : ToolWindow
    {
        public FormMainMenu()
        {
            InitializeComponent();
        }

        protected override void OnRightToLeftLayoutChanged(EventArgs e)
        {
            tv_Personnel.RightToLeftLayout = RightToLeftLayout;
        }

        private void FormMainMenu_Load(object sender, EventArgs e)
        {

            this.btn_BarMenu.Groups["Personnel"].ContainerControl.Controls.Add(this.tv_Personnel);
            this.btn_BarMenu.Groups["TimeAtt"].ContainerControl.Controls.Add(this.tv_TimeAtt);
            this.btn_BarMenu.Groups["Payroll"].ContainerControl.Controls.Add(this.tv_Payroll);
            this.btn_BarMenu.Groups["Ins"].ContainerControl.Controls.Add(this.tv_Ins);
            this.btn_BarMenu.Groups["Rpts"].ContainerControl.Controls.Add(this.tv_Rpts);
            this.tv_Personnel.Dock = DockStyle.Fill;
            this.tv_TimeAtt.Dock = DockStyle.Fill;
            this.tv_Payroll.Dock = DockStyle.Fill;
            this.tv_Ins.Dock = DockStyle.Fill;
            this.tv_Rpts.Dock = DockStyle.Fill;
            
        }
    }
}